package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.DataSource;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据源管理对象 gaea_report_data_source
 * 
 * @author ruoyi
 * @date 2022-05-01
 */
@Data
@ToString
@ApiModel(value = "数据源管理对象", description = "数据源管理对象")
public class GaeaReportDataSource extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    private String accessKey;

    private String caseResult;

    private String createBy;
    private String createByView;

    private String setCode;
    private String setDesc;
    private String setName;
    private String setType;
//    private String sourceCode;
    private String updateBy;
    private String dataSetParamDtoList;
    private String dataSetTransformDtoList;
    private String dynSentence;

    /** 数据源编码 */
    @Excel(name = "数据源编码")
    private String sourceCode;

    /** 数据源名称 */
    @Excel(name = "数据源名称")
    private String sourceName;

    /** 数据源描述 */
    @Excel(name = "数据源描述")
    private String sourceDesc;

    /** 数据源类型 DIC_NAME=SOURCE_TYPE; mysql，orace，sqlserver，elasticsearch，接口，javaBean，数据源类型字典中item-extend动态生成表单 */
    @Excel(name = "数据源类型 DIC_NAME=SOURCE_TYPE; mysql，orace，sqlserver，elasticsearch，接口，javaBean，数据源类型字典中item-extend动态生成表单")
    private String sourceType;

    /** 数据源连接配置json：关系库{ jdbcUrl:'', username:'', password:'' } ES{ hostList:'ip1:9300,ip2:9300,ip3:9300', clusterName:'elasticsearch_cluster' }  接口{ apiUrl:'http://ip:port/url', method:'' } javaBean{ beanNamw:'xxx' } */
    @Excel(name = "数据源连接配置json：关系库{ jdbcUrl:'', username:'', password:'' } ES{ hostList:'ip1:9300,ip2:9300,ip3:9300', clusterName:'elasticsearch_cluster' }  接口{ apiUrl:'http://ip:port/url', method:'' } javaBean{ beanNamw:'xxx' }")
    private String sourceConfig;

    /** 0--已禁用 1--已启用  DIC_NAME=ENABLE_FLAG */
    @Excel(name = "0--已禁用 1--已启用  DIC_NAME=ENABLE_FLAG")
    private Integer enableFlag;

    /** 0--未删除 1--已删除 DIC_NAME=DELETE_FLAG */
    @Excel(name = "0--未删除 1--已删除 DIC_NAME=DELETE_FLAG")
    private Integer deleteFlag;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer version;

}
